# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class DeadLockDetail(object):

    def __init__(self, trxName=None, sessionId=None, queryType=None, trxId=None, host=None, tableName=None, waitLock=None, waitLockIndex=None, waitLockType=None, holdLock=None, holdLockIndex=None, holdLockType=None, trxSql=None):
        """
        :param trxName: (Optional) 事务标记名称
        :param sessionId: (Optional) Session ID
        :param queryType: (Optional) 请求类型
        :param trxId: (Optional) 事务id
        :param host: (Optional) 访问来源host
        :param tableName: (Optional) 涉及表名
        :param waitLock: (Optional) 等待锁
        :param waitLockIndex: (Optional) 等待锁索引名
        :param waitLockType: (Optional) 等待锁类型
        :param holdLock: (Optional) 持有锁
        :param holdLockIndex: (Optional) 持有锁索引名
        :param holdLockType: (Optional) 持有锁类型
        :param trxSql: (Optional) 事务SQL
        """

        self.trxName = trxName
        self.sessionId = sessionId
        self.queryType = queryType
        self.trxId = trxId
        self.host = host
        self.tableName = tableName
        self.waitLock = waitLock
        self.waitLockIndex = waitLockIndex
        self.waitLockType = waitLockType
        self.holdLock = holdLock
        self.holdLockIndex = holdLockIndex
        self.holdLockType = holdLockType
        self.trxSql = trxSql
